The Dreamweaver JavaScript API > File manipulation functions > dom.hasCharacterMarkup()

 

dom.hasCharacterMarkup()

Availability

Dreamweaver 3.0

Description

Checks whether the selection already has the specified character markup.

Arguments

markupTagName

markupTagName is the name of the tag you're checking for. It must be one of the following strings: "b", "cite", "code", "dfn", "em", "i", "kbd", "samp", "s", "strong", "tt", "u", or "var".

Returns

A Boolean value indicating whether the entire selection has the specified character markup. The function returns false if only part of the selection has the specified markup.

Enabler

None.